#ifndef SIDEBUTTONPANEL_H
#define SIDEBUTTONPANEL_H

#include <QWidget>

class QAbstractButton;
class QBoxLayout;
class QButtonGroup;
class SideButtonPanel : public QWidget
{
    Q_OBJECT
public:
    typedef enum
    {
        North,
        West,
        East
    } Direction;

    explicit SideButtonPanel(Direction direction, QWidget *parent = nullptr);

    void addButton(bool isLeft, QAbstractButton *button);

    Direction direction() const;

signals:

public slots:

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    QPixmap m_content;
    QBoxLayout *m_leftLayout, *m_rightLayout;
    QButtonGroup *m_buttonGroup;
    Direction m_direction;
};

#endif // SIDEBUTTONPANEL_H
